package org.jeecg.modules.demo.tobedone.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.jeecg.modules.demo.tobedone.entity.ReportKpi;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description: 汇报年度关键指标
 * @Author: jeecg-boot
 * @Date:   2025-08-12
 * @Version: V1.0
 */
@Mapper
public interface ReportKpiMapper extends BaseMapper<ReportKpi> {
//    根据责任部门id查询汇报列表信息
    List<ReportKpi> SelectReportKpiListAll(String orgId);
    //    根据年度关键指标的id查询完成情况
    List<String> SelectCompletionProgress(String id);
    //    根据待办的id更新已汇报数据的信息到数据库
    int saveReportKpi(@RequestParam ReportKpi reportkpi);
//    保存汇报记录的信息
    int saveReport(@RequestParam ReportKpi reportkpi);
//    获取汇报年度关键指标列表的记录
    int ReportSumOfKpi(String orgId);

}
